<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>我的XXX-我的订单</title>
		<#include "/WEB-INF/ftl/user/include.ftl" />
		<link type="text/css" rel="stylesheet" href="${base}/css/user/user.css" />
		<link type="text/css" rel="stylesheet" href="${base}/css/user/user_order.css" />
        <script type="text/javascript" src="${base}/js/user/user_order.js"></script>
	</head>
	<body>
		<div class="justify-footer-wrapper">
			<#include "/WEB-INF/ftl/user/header.ftl" />
			<div class="wrapper">
				<div class="side">
					<h2 class="side-hd">我的XXX</h2>
					<ul class="side-list">
						<li><a href="${base}/user/userCenter.do">个人中心</a></li>
						<li><a href="${base}/user/userInfo.do">个人信息</a></li>
						<li><a href="javascript:void(0);">更换头像</a></li>
						<li><a href="${base}/user/userHardwareComment.do">我的点评</a></li>
						<li class="pre-selected"><a href="${base}/user/userScheme.do">我的方案</a></li>
						<li class="selected"><a href="${base}/user/userOrder.do">我的订单</a></li>
						<li class="last"><a href="${base}/user/userPassword.do">修改密码</a></li>
					</ul>
				</div>
				<div class="main">
					<h1 class="title">我的订单</h1>
					<div class="content">
						<table>
							<thead>
								<tr>
									<th><span class="order">订单号</span></th>
									<th><span class="scheme">装机方案</span></th>
									<th><span class="price">订单金额</span></th>
									<th><span class="time">下单时间</span></th>
									<th><span class="state">订单状态</span></th>
									<th><span class="address">收货地址</span></th>
									<th><span class="operation">操作</span></th>
								</tr>
							</thead>
							<tbody>
								<#list orderList as order>
								<tr>
									<#assign id = order.id?c />
									<#assign schemeName = order.scheme.schemeName />
									<#assign schemeId = order.scheme.id?c />
									<#assign price = order.price />
									<#assign time = order.time />
									<#assign state = order.state.value />
									<#assign address = order.deliveryAddress />
									<td><a href="javascript:void(0);" class="order blue" title="${id}">${id}</a></td>
									<td><a target="_blank" href="${base}/schemeDetail.do?id=${schemeId}" class="scheme blue" title="${schemeName}">${schemeName}</a></td>
									<td><span class="price" title="&yen;${price}">&yen;<b>${price}</b></span></td>
									<td><span class="time" title="${time}">${time}</span></td>
									<td><span class="state" title="${state}">${state}</span></td>
									<td><span class="address" title="${address}">${address}</span></td>
									<#if state == "待处理">
									<td><a href="javascript:void(0);" onclick="removeOrder(event, '${id}')" class="operation blue" title="取消订单">取消</a></td>
									<#else>
									<td>—</td>
									</#if>
								</tr>
								</#list>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>
		<#include "/WEB-INF/ftl/user/footer.ftl" />
	</body>
</html>
